﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Naruto.TaskManagement.Application;
using Naruto.TaskManagement.Entitys.DTO;
using Naruto.TaskManagement.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Naruto.TaskManagement.WebApi.Controllers
{
    /// <summary>
    /// 聊天消息
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    public class ChatMessageController : ControllerBase
    {
        private readonly ChatMessageApps chatMessageApps;

        public ChatMessageController(ChatMessageApps _chatMessageApps)
        {
            chatMessageApps = _chatMessageApps;
        }


        [HttpGet]
        /// <summary>
        /// 获取我的聊天消息记录
        /// </summary>
        public async Task<NarutoResult> MyChatMessage([FromQuery] MyChatMessageDTO info) => await chatMessageApps.MyChatMessage(info);

        
    }
}
